package project.daggerdemo.session.presenter;

import project.daggerdemo.network.api.UserManager;
import project.daggerdemo.session.ui.SplashActivity;
import project.daggerdemo.utils.HeavyLibraryWrapper;

/**
 * Created by lgs on 2018/3/3.
 */

public class SplashActivityPresenter {
    public String userName;
    private SplashActivity splashActivity;
    //    private Validator validator;
    private UserManager userManager;
    private HeavyLibraryWrapper heavyLibraryWrapper;

    public SplashActivityPresenter(SplashActivity splashActivity,
                                   UserManager userManager, HeavyLibraryWrapper heavyLibraryWrapper) {
        this.splashActivity = splashActivity;
//        this.validator = validator;
        this.userManager = userManager;
        this.heavyLibraryWrapper = heavyLibraryWrapper;

        //This calls should be delivered to ExternalLibrary right after it will be initialized
        this.heavyLibraryWrapper.callMethod();
        this.heavyLibraryWrapper.callMethod();
        this.heavyLibraryWrapper.callMethod();
        this.heavyLibraryWrapper.callMethod();
    }
}
